package com.bluemsun.naturallanguageprocessing.dao;

import com.bluemsun.naturallanguageprocessing.entity.Question;
import com.bluemsun.naturallanguageprocessing.vo.TagVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

@Repository
public interface TagMapper {
    /**
     * 将问题所对应的标签放入数据库
     * @param arrayList
     * @return
     */
    Integer insertQuestionTag(@Param("list") ArrayList<String> arrayList,@Param("question") Question question);

    /**
     * @author     ：hj
     * @date       ：Created in 2021/4/25 20:39
     * @description：这类问题的总数
     * @modified By：
     * @version:
     */
    int count(List<TagVO> list);
}
